﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.Windows.Forms;
using TopologyWizzard;

namespace VPN_Emulator
{
    //! Klasa reprezentująca interfejs routera
    public class Interface
    {
        private int x;
        private int y;
        private String name;
        private List<Connection> connections;
        private PictureBox pictureBox;

        //! Konstruktor
        public Interface(String name_, int xx, int yy, List<Connection> connections_)
        {
            x = xx;
            y = yy;
            connections = connections_;
            name = name_;
        }

        //! Obraz
        public PictureBox PictureBox
        {
            get
            {
                return pictureBox;
            }
            set
            {
                pictureBox = value;
            }
        }

        //! Lista połączeń z interfejsami innych urządzeń
        public List<Connection> Connections
        {
            get
            {
                return connections;
            }
            set
            {
                connections = value;
            }
        }

        //! Nazwa
        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        //! Pozycja X na panelu topologii
        public int X
        {
            get
            {
                return x;
            }
            set
            {
                x = value;
            }
        }
    
        //! Pozycja Y na panelu topologii
        public int Y
        {
            get
            {
                return y;
            }
            set
            {
                y = value;
            }
        }
    }
}
